package com.a214.yxz.yuejian013.Activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.ImageButton;
import android.widget.Switch;

import com.a214.yxz.yuejian013.R;

public class UserSettingPostActivity extends AppCompatActivity {

    private ImageButton return_btn;
    private Switch comment,clubNote,sysNote;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_setting_post);

        return_btn= (ImageButton) findViewById(R.id.user_setting_post_return_btn);
        comment= (Switch) findViewById(R.id.user_setting_post_comment_switch);
        clubNote= (Switch) findViewById(R.id.user_setting_post_clubNote_switch);
        sysNote= (Switch) findViewById(R.id.user_setting_post_sysNote_switch);

        return_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });


        comment.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
                if (b){

                }else{

                }
            }
        });

        clubNote.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
                if (b){

                }else{

                }
            }
        });
        sysNote.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
                if (b){

                }else{
                    
                }
            }
        });
    }
}
